package com.cytech.cloudclinic.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.cytech.cloudclinic.R;
import com.cytech.cloudclinic.bean.Drug;
import com.cytech.cloudclinic.bean.PrescriptionMenuModule;

import java.util.List;

public class PrescriptionAddDrugAdapter extends BaseQuickAdapter<Drug, BaseViewHolder> {


    public PrescriptionAddDrugAdapter(List<Drug> data) {
        super(R.layout.item_prescription_drug, data);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, Drug drug) {
        baseViewHolder.setText(R.id.item_drug_name,drug.drug_name);
        baseViewHolder.setText(R.id.item_drug_company,drug.company);
    }

}
